import tensorflow as tf

x = tf.constant([1, 2, 3, 4, 5, 6, 7], dtype=tf.float64)
y = tf.constant([1, 1, 1, 0, 0, 1, 0], dtype=tf.float64)
tf.inv(x)
loss = tf.nn.sigmoid_cross_entropy_with_logits(labels=y, logits=x)
with tf.Session() as sess:
    print(sess.run(loss))
    file_writer = tf.summary.FileWriter('D:\\Project\\tensorboard', sess.graph)
